package com.yc.hwc.web.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.yc.hwc.bean.Comment;
import com.yc.hwc.bean.PageImpl;
import com.yc.hwc.bean.Result;
import com.yc.hwc.bean.Task;
import com.yc.hwc.bean.TaskLog;

@FeignClient("hwctask")
@JsonIgnoreProperties(ignoreUnknown = true)
public interface ITaskDo {

	@PostMapping("taskLog/myTaskList")
	Result<?> myTaskList(TaskLog tl);
	
	@PostMapping("comment/save")
	Result<?> reply(Comment cmt);
	
	@PostMapping("task/save")
	Result<?> save(Task task);
	
	@PostMapping("taskLog/save")
	Result<?> save(TaskLog tasklog);

	@PostMapping("taskLog/find")
	PageImpl<TaskLog> findTaskLog(TaskLog taskLog);

	@PostMapping("task/find")
	PageImpl<Task> myTaskList(@RequestBody Task task, @RequestParam int page, @RequestParam int size);

}
